package Task28;

public class Command {
	private String nameCommand;
	private String[] args;
	private String workDir;

	public String getNameCommand() {
		return nameCommand;
	}

	public void setNameCommand(String nameCommand) {
		this.nameCommand = nameCommand;
	}

	public String[] getArgs() {
		return args;
	}

	public void setArgs(String[] args) {
		this.args = args;
	}

	public int getNumArgs() {
		if (args == null)
			return 0;
		else
			return args.length;
	}

	public String getWorkDir() {
		return workDir;
	}

	public void setWorkDir(String workDir) {
		this.workDir = workDir;
	}

}
